//
//  PreviewDownFileViewCell.m
//  MIS Cloud
//
//  Created by goldeney on 13-12-6.
//  Copyright (c) 2013年 goldeneye. All rights reserved.
//

#import "PreviewDownFileViewCell.h"

@implementation PreviewDownFileViewCell

@synthesize fileInfo;
@synthesize fileNameLabel;
@synthesize fileSizeLabel;
@synthesize iconImage;
@synthesize checkButton;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Load the top-level objects from the custom cell XIB.
        NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"PreviewDownFileViewCell" owner:self options:nil];
        // Grab a pointer to the first object (presumably the custom cell, as that's all the XIB should contain).
        self = [topLevelObjects objectAtIndex:0];
        self.opaque = YES;
        self.selectionStyle = UITableViewCellSelectionStyleBlue;
        
        [self addNewsView];
    }
    
    return self;
}

- (void)addNewsView
{
    checkButton = [[SSCheckBoxView alloc] initWithFrame:CGRectMake(SuperWidth - 50, 17, 36, 36)
                                                  style:kSSCheckBoxViewStyleGrayGreen checked:NO];
    [checkButton setUserInteractionEnabled:NO];
    [self.contentView addSubview:checkButton];
}

@end
